package com.wufei.tastefor.activity;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;

import com.wufei.tastefor.utils.AppManager;

/**
 * Created by wufei on 2015/11/2.
 */

public class BaseActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        AppManager.getAppManager().addActivity(this);
    }


    @Override
    public void onBackPressed() {
        super.onBackPressed();
        AppManager.getAppManager().finishActivity();
    }
}

